package com.heima.feign.fallback;

import com.heima.feign.article.IArticleClient;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

/**
 * @Author: JW
 * @Description: TODO
 * @DateTime: 2022-02-16 17:49
 **/
@Component
public class IArticleClientFallback implements IArticleClient {
    /**
     * @param articleDto
     * @Author: JW
     * @Description: TODO 保存文章
     * @Date: 20:19 2022-02-13
     * @Param: [articleDto]
     * @return: com.heima.model.common.dtos.ResponseResult
     */
    @Override
    public ResponseResult saveArticle(ArticleDto articleDto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }
}
